package com.itcast.Extends2;

public class test {
    public static void main(String[] args) {
        cat c = new cat("tom",11);
        System.out.println(c.getName()+"--"+c.getId());
        c.eat();
        dog d = new dog("dxx",12);
        System.out.println(d.getName()+"--"+d.getId());
        d.eat();
    }
}
